#!/usr/bin/python3
# -*- coding: utf-8 -*-
import zlib

class ZlibUtil:

    @staticmethod
    def compass(content):
        contentBytes = content.encode("utf-8")
        z_content = zlib.compress(contentBytes)
        print(z_content)
        return z_content

    @staticmethod
    def decompress(content):
        contentBytes = content.encode("utf-8")
        z_content = zlib.decompress(contentBytes)
        return z_content.decode('utf-8')